package com.shunda.trade.controller;

import com.shunda.common.core.controller.BaseController;
import com.shunda.common.core.page.TableDataInfo;
import com.shunda.trade.entity.TradeProfitSharingAccount;
import com.shunda.trade.service.ITradeProfitSharingAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: dongyq
 * @date: 2025/4/6 13:30
 * @since: 1.0.0
 * @功能描述:
 */
@RestController
@RequestMapping("/profit/sharing")
public class TradeProfitSharingAccountController extends BaseController {

    @Autowired
    private ITradeProfitSharingAccountService profitSharingAccountService;


    @GetMapping("/list")
    public TableDataInfo addReceivers(@RequestBody TradeProfitSharingAccount sharingAccount) {
        startPage();
        List<TradeProfitSharingAccount> list = profitSharingAccountService.selectList(sharingAccount);
        return getDataTable(list);
    }

}

